<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>CSS3 伪元素字体图标</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
    <style>
        *{
            margin: 0;
            padding:0;
        }
        body {
            font-family: Arial, sans-serif;
            margin: 20px;
        }

        .icon-title::before {
         
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            color: red;
            margin-right: 10px;
        }

        .home-icon::before {
            content: '\f015';
            font-family: 'Font Awesome 5 Free';
            font-weight: 900;
            font-size: 20px;
            color: black;
            margin-right: 10px;
            margin-bottom: 20px;
        }
        .dropdown {
            width: 200px;
            padding: 10px;
            font-size: 16px;
        }
    </style>
</head>
<body>

<div class="home-icon"></div>
<select class="dropdown">
    <option>1</option>
    <option>2</option>
    <option>3</option>
</select>

</body>
</html>
